package com.Hsu.book.enums;

/**
 * @author Hsu琛君珩
 * @ClassName:ResultCode
 * @date 2024-01-07
 * @apiNote
 * @Version: v1.0
 */

public enum ResultCode {
    SUCCESS(0),
    FAIL(-1),
    UNLOGIN(-2)
    ;
    //0 成功  -1 失败  -2 未登录
    public int code;

    ResultCode(int code) {
        this.code=code;
    }

    public int getCode(){
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
